﻿using System.Data;
using LibDataLayer;

namespace LibBusinessLayer
{
    public class BllForumMini
    {
        #region[Get-Data]
        public DataTable GetForumMini(string keywords)
        {
            return DalForumMini.GetForumMini(keywords);
        }
        public DataTable GetForumMiniEdit(int id)
        {
            return DalForumMini.GetForumMiniEdit(id);
        }
        public DataTable GetForumMiniFillterStatus(int IsActive)
        {
            return DalForumMini.GetForumMiniFillterStatus(IsActive);
        }
        public DataTable GetForumMiniFillterCategories(int Cid)
        {
            return DalForumMini.GetForumMiniFillterCategories(Cid);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOForumMini obj)
        {
            return DalForumMini.Insert(obj);
        }
        public static bool Update(DTOForumMini obj)
        {
            return DalForumMini.Update(obj);
        }
        public static bool Delete(DTOForumMini obj)
        {
            return DalForumMini.Delete(obj);
        }
        public static bool UpdateNum(DTOForumMini obj)
        {
            return DalForumMini.UpdateNum(obj);
        }
        public static bool UpdateCheck(DTOForumMini obj)
        {
            return DalForumMini.UpdateCheck(obj);
        }
        #endregion

        #region[Get-Data-HomePage]
        public DataTable GetForumMiniHomePage(int Fid)
        {
            return DalForumMini.GetForumMiniHomePage(Fid);
        }
        #endregion
    }
}